#ifndef SUBTITLE_HH_
# define SUBTITLE_HH_

#include "interface/Text.hh"
# include "Shape2D/Rectangle.hh"

class Subtitle : public Text
{
public:
  /// Ctor
  Subtitle::Subtitle();

  /// Dtor
  Subtitle::~Subtitle();

  /// display _text in _rect, scroll if necessary
  void display();

  void setPopAnimation(Annimation pop);
  void setFadeAnimation(Annimation fade);

  bool playPop();
  bool playFade();


private:
  Sprite _backGround; // Texture ?
  Rectangle _rect; /// where _backGround is displayed
  Annimation _pop;  // same as _fade // play on _rect ?
  Annimation _fade; // same as _pop // play on _rect ?
  glfwTimer _timer; /// how much time do we have to display _text
};

#endif /* !SUBTITLE_HH_ */
